

//全局唯一的
//Store 就是保存数据的地方，你可以把它看成一个容器。整个应用只能有一个 Store。
import {applyMiddleware, createStore} from "redux"
import { reducers } from "./reducers"
const store = createStore(reducers,applyMiddleware(thunk,promise))

import thunk from 'redux-thunk'
import promise from 'redux-promise'

const state = store.getState(); //获取state
console.log(state);


export default store